package io.terminus.paas.profiler

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.ApplicationContext
import org.springframework.web.servlet.config.annotation.InterceptorRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter

/**
 * Created by gengrong on 16/5/16.
 */
@SpringBootApplication(scanBasePackages = arrayOf("io.terminus.paas.profiler"))
open class Application : WebMvcConfigurerAdapter() {
    @Autowired
    private var applicationContext: ApplicationContext? = null

    override fun addInterceptors(registry: InterceptorRegistry) {
    }
}

fun main(vararg args: String) {
    SpringApplication.run(Application::class.java, *args)
}